package com.example.day_day_up.service.impl;

import com.example.day_day_up.entity.po.Comment;
import com.example.day_day_up.mappers.CommentMapper;
import com.example.day_day_up.service.CommentService;

public class CommentServiceImpl implements CommentService {
    private final CommentMapper commentMapper;

    public CommentServiceImpl(CommentMapper commentMapper) {
        this.commentMapper = commentMapper;
    }

    @Override
    public void addComment(Comment comment) {
        commentMapper.insert(comment);
    }
}
